Creating a Unit Parameter
Description
To create a new unit parameter in the Model Tree:
Select the position in a Declaration Section where the new unit parameter should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>
key)In the dialog box select
Unit parameter and press OK
Enter a name for the new unit parameter (if you are creating a multi-dimensional parameter, you can type the indices of each dimension as well)
Press
<Enter>
to create the new unit parameter (or press<Esc>
to abort the operation)
The newly created unit parameter is now ready for use, but you probably want to specify some additional attributes. To modify the attributes of the newly created unit parameter:
Press
<Enter>
or double click on the unit parameter.
The most commonly used attributes of a unit parameter are discussed below.
INDEX DOMAIN
: TheINDEX DOMAIN
attribute should be specified in order to declare indexed unit parameters. Thewizard will display the Set Dependency Tree of your model and allows you to select one or more indices.
DEFINITION
: TheDEFINITION
attribute can (and should) be used to specify a unit expression. In case the unit expression is a constant unit expression (e.g.[m]
), there is in fact no need for a unit parameter and the unit[m]
could be directly specified as the unit attribute of the corresponding identifiers.
Remark
To be able to declare a unit parameter your model has to be equipped with at least one quantity identifier.
How to …
Learn more about